<template>
  <div>
    <!-- <el-input size="medium" v-model="search_cno" placeholder="请输入课程编号"></el-input>
    <el-button @click="search()" icon="el-icon-search" circle></el-button> -->
    <el-table
      :data="tableData"
      border
      style="width:100%">
      <el-table-column
        fixed
        prop="Asno"
        label="学生编号"
        width="150">
      </el-table-column>
      <el-table-column
        prop="Acno"
        label="课程编号"
        width="120">
      </el-table-column>
      <el-table-column
        prop="Aclass_cno"
        label="班级代号"
        width="120">
      </el-table-column>
      <el-table-column
        prop="Aamount"
        label="缴费金额"
        width="120">
      </el-table-column>
      <el-table-column
        label="操作"
        width="150">
        <template slot-scope="scope">
          <el-button @click="cuishou(scope.row)" type="text" size="small">催收</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "催收费用",
  data() {
    return {
      tableData:null
    }
  },
  created(){
    const  _this = this;
    this.axios.post('http://localhost:8152/api/auth/account/findmoney').then((res) => {
      console.log(res.data);
      _this.tableData = res.data;
    })
  },
  methods:{
    cuishou(row){
      alert(`已向学生编号为:${row.Asno}催收${row.Aamount}元钱`);

    }
  }
}
</script>

<style scoped>

</style>
